const express = require('express');
const app = express();
const pool = require('./pool');
app.listen(8080);

app.use(express.static('./public'));

app.use(express.urlencoded({
    extended:false
}));

app.use((err,req,res,next)=>{
    console.log(err);
    res.status(500).send({code:500,msg:"服务器错误"})
});